package shared.highcharts.config

import dataclass.data

sealed abstract class SeriesAny extends Product with Serializable

@data class SeriesBar(
                   name: Option[String],
                   data:Option[Seq[Double]]
                 ) extends SeriesAny

object SeriesBar {
  def apply(
             name: String = null,
             data: Seq[Double] = null,
           ) = new SeriesBar(
    Option(name),
    Option(data),
  )
}

@data class Venn(
                        name: Option[String],
                        data: Option[Seq[SeriesVennData]]
                      ) extends SeriesAny

object Venn {
  def apply(
             name: String = null,
             data: Seq[SeriesVennData] = null,
           ) = new Venn(
    Option(name),
    Option(data),
  )
}


